{if $color eq 'white'}
{$name}<img id="{$id}_drop_{$color}" class="on_drop_{$color}" src="images/{$color}_cap.png" />
{else}
<img id="{$id}_drop_{$color}" class="on_drop_{$color}" src="images/{$color}_cap.png" />{$name}
{/if}
<script type="text/javascript">
    $('gme_del_id_{$team}').value = {$id};
    new Draggable('{$id}_drop_{$color}',{ldelim}revert:1{rdelim});
</script>